<script setup>

</script>

<template>
  <el-container class="layout-container">
    <el-header>
      <!-- 导航栏开始 -->
      <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" :ellipsis="false"
        @select="handleSelect">
        <el-menu-item index="0">
          <img style="width: 40px" src="/src/assets/vue.svg" alt="Element logo" />
        </el-menu-item>
        <el-menu-item index="1">Processing Center</el-menu-item>
        <el-sub-menu index="2">
          <template #title>Workspace</template>
          <el-menu-item index="2-1">item one</el-menu-item>
          <el-menu-item index="2-2">item two</el-menu-item>
          <el-menu-item index="2-3">item three</el-menu-item>
          <el-sub-menu index="2-4">
            <template #title>item four</template>
            <el-menu-item index="2-4-1">item one</el-menu-item>
            <el-menu-item index="2-4-2">item two</el-menu-item>
            <el-menu-item index="2-4-3">item three</el-menu-item>
          </el-sub-menu>
        </el-sub-menu>
      </el-menu>
      <!-- 导航栏结束 -->
    </el-header>
    <el-container>
      <el-aside width="200px">Aside</el-aside>
      <el-container>
        <el-main>Main</el-main>
        <el-footer>Footer</el-footer>
      </el-container>
    </el-container>
  </el-container>
</template>


<style scoped>
.el-header,
.el-footer {
  text-align: center;
  line-height: 60px;
  padding: 0;
}

.layout-container {
  height: 100%;
  width: 100%;
}

.el-header {
  background-color: #B3C0D1;
  color: #333333;
  line-height: 60px;
  height: 60px;
  /* 固定头部高度 */

}

.el-aside {
  background-color: #D3DCE6;
  color: #333;

}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  height: calc(100% - 60px);
  /* 减去底部高度 */
}

.el-footer {
  background-color: #B3C0D1;
  color: #333;
  line-height: 60px;
  height: 60px;
  /* 固定底部高度 */
}
</style>
